<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>decimal_min_formatter - ClueLib</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="decimal_min_formatter"></a>decimal_min_formatter</h1><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>class decimal_min_formatter #(</td><td class="PType  prettyprint " nowrap>type&nbsp;</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> int</td><td class="PAfterParameters  prettyprint "nowrap>) extends formatter#( T )</td></tr></table></td></tr></table></blockquote><p><span class="singleton">singleton</span> Provides a strategy to convert an object of integral data types such as <b>int</b> and <b>time</b> into a string using a decimal format with the minimum width.</p><h4 class=CHeading>Parameter</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>T</td><td class=CDLDescription><span class="optional">optional</span> The type of an object to be converted.&nbsp; The default is <b>int</b>.</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#decimal_min_formatter" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">decimal_min_formatter</a></td><td class=SDescription><span class="singleton">singleton</span> Provides a strategy to convert an object of integral data types such as <b>int</b> and <b>time</b> into a string using a decimal format with the minimum width.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#decimal_min_formatter.Types" >Types</a></td><td class=SDescription></td></tr><tr class="SType SIndent2 SMarked"><td class=SEntry><a href="#decimal_min_formatter.this_type" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">this_type</a></td><td class=SDescription>The shorthand of <a href="#decimal_min_formatter" class=LClass id=link3 onMouseOver="ShowTip(event, 'tt1', 'link3')" onMouseOut="HideTip('tt1')">decimal_min_formatter</a> <b>#(T)</b>.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#decimal_min_formatter.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#decimal_min_formatter.new" id=link4 onMouseOver="ShowTip(event, 'tt3', 'link4')" onMouseOut="HideTip('tt3')">new</a></td><td class=SDescription><span class="protected">protected</span> Creates a new formatter.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#decimal_min_formatter.get_instance" id=link5 onMouseOver="ShowTip(event, 'tt4', 'link5')" onMouseOut="HideTip('tt4')">get_instance</a></td><td class=SDescription><span class="static">static</span> Returns the singleton instance of this formatter.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#decimal_min_formatter.to_string" id=link6 onMouseOver="ShowTip(event, 'tt5', 'link6')" onMouseOut="HideTip('tt5')">to_string</a></td><td class=SDescription><span class="virtual">virtual</span> Returns a string representation of the given object of type <b>T</b> using the <b>%0d</b> format string.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="decimal_min_formatter.Types"></a>Types</h3></div></div>

<div class="CType"><div class=CTopic><h3 class=CTitle><a name="decimal_min_formatter.this_type"></a>this_type</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>typedef decimal_min_formatter#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) this_type</td></tr></table></td></tr></table></blockquote><p>The shorthand of <a href="#decimal_min_formatter" class=LClass id=link7 onMouseOver="ShowTip(event, 'tt1', 'link7')" onMouseOut="HideTip('tt1')">decimal_min_formatter</a> <b>#(T)</b>.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="decimal_min_formatter.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="decimal_min_formatter.new"></a>new</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">protected function new()</td></tr></table></blockquote><p><span class="protected">protected</span> Creates a new formatter.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="decimal_min_formatter.get_instance"></a>get_instance</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">static function this_type get_instance()</td></tr></table></blockquote><p><span class="static">static</span> Returns the singleton instance of this formatter.</p><h4 class=CHeading>Returns</h4><p>The singleton instance.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="decimal_min_formatter.to_string"></a>to_string</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function string to_string(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>o</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="virtual">virtual</span> Returns a string representation of the given object of type <b>T</b> using the <b>%0d</b> format string.</p><h4 class=CHeading>Argument</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>o</td><td class=CDLDescription>An object to convert to a string.</td></tr></table><h4 class=CHeading>Returns</h4><p>A string representing <b>o</b>.</p></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CClass><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>class decimal_min_formatter #(</td><td class="PType  prettyprint " nowrap>type&nbsp;</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> int</td><td class="PAfterParameters  prettyprint "nowrap>) extends formatter#( T )</td></tr></table></td></tr></table></blockquote><span class="singleton">singleton</span> Provides a strategy to convert an object of integral data types such as <b>int</b> and <b>time</b> into a string using a decimal format with the minimum width.</div></div><div class=CToolTip id="tt2"><div class=CType><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>typedef decimal_min_formatter#(</td><td class="PParameter  prettyprint " nowrap>T</td><td class="PAfterParameters  prettyprint "nowrap>) this_type</td></tr></table></td></tr></table></blockquote>The shorthand of decimal_min_formatter <b>#(T)</b>.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">protected function new()</td></tr></table></blockquote><span class="protected">protected</span> Creates a new formatter.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">static function this_type get_instance()</td></tr></table></blockquote><span class="static">static</span> Returns the singleton instance of this formatter.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>virtual function string to_string(</td><td class="PType  prettyprint " nowrap>T&nbsp;</td><td class="PParameter  prettyprint " nowrap>o</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="virtual">virtual</span> Returns a string representation of the given object of type <b>T</b> using the <b>%0d</b> format string.</div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>